package com.jubaozan.reward.dao.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * b.descendant_id,
 * b.ancestor_id,
 * a.id AS agency_id,
 * a.`level`,
 * c.parent_priority AS weight,
 * b.hierarchy,
 * MAX(c.parent_priority) OVER (
 * ORDER BY b.hierarchy
 * ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING
 * ) AS prev_max_weight,
 * b.tenant_id
 */
@Data
public class AgencyAncestorDO implements Serializable {
    private Long agencyId;
    private String name;
    private String code;
    private Long levelId;
    private Integer weight;
    private Long userId;
    private Long tenantId;
}
